package com.tsinghua.server.common.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BusinessException extends RuntimeException {

    private Integer code = 400;

    public BusinessException() {
    }

    public BusinessException(Integer code, String errorMessage) {
        super(errorMessage);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
        this.code = 400;
    }
}
